package cn.boundtw2.Reader;

import java.io.FileReader;
import java.io.IOException;

public class Demo01Reader {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("IOliu\\c.txt");
       /* int len = 0;
        while((len = fr.read())!=-1){
            System.out.print((char)len);//你好abc123￥￥￥

        }*/
        char[] cs = new char[1024];
        int len = 0;
        while ((len = fr.read(cs))!=-1){
            System.out.println(new String(cs,0,len));//你好abc123￥￥￥
        }


    }
}
